#include <time.h>
#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <pthread.h>
#include <signal.h>
#include <math.h>
#include "vxi_ii_svc.h"

int main (int argc, char **argv)
{
	int ret = 0;

    printf("L: %d; get_main_pid = %d\n", __LINE__, getpid());
	printf("start vxi_ii_server...\n");
//	if (daemon(0, 0)) {
//		(void) fprintf(stderr, "portmap: fork: %s", strerror(errno));
//		exit(1);
//	}
	if((ret = vxi_ii_start()) != 0){
		printf("there is some error!\n");
		exit(1);
	}
	printf("vxi_ii_server exited...\n");
	exit (0);
	/* NOTREACHED */
}
